Username$<%=username%>
Password$<%=password%>
<%=prompt%>$en
#|Password$<%=ManagementPassword%>
#$configure terminal
#$interface ethernet <%=portID.replace('e','')%>
#$exit
#$<%=type%>
<% if(addvlan){ -%>
#$vlan <%=addvlan%>
#$exit
#$interface ethernet <%=portID.replace('e','')%>
#$switchport hybrid tagged vlan <%=addvlan%>
#$exit
<% } -%>
<% if(removevlan){ -%>
#$interface ethernet <%=portID.replace('e','')%>
#$no switchport hybrid vlan <%=removevlan%>
#$exit
<% } -%>
<% if(UnTagvlan != oldUnTagvlan){ -%>
#$interface ethernet <%=portID.replace('e','')%>
#$no switchport default vlan
#$no switchport hybrid vlan <%=oldUnTagvlan%>
#$exit
<% if(UnTagvlan){ -%>
#$vlan <%=UnTagvlan%>
#$exit
#$interface ethernet <%=portID.replace('e','')%>
#$switchport default vlan <%=UnTagvlan%>
#$exit
<% } -%>
<% } -%>